using TEngine;
using YooAsset;

namespace GameLogic
{
    public class HttpLogger
    {
        public void Log(string url, int code, string message)
        {
            string data = Utility.Text.Format("Url:{0}, Code:{1}, Message:{2}", url, code, message);
            TEngine.Log.Info(message);
        }

        public void Warning(string url, int code, string message)
        {
            string data = Utility.Text.Format("Url:{0}, Code:{1}, Message:{2}", url, code, message);
            TEngine.Log.Warning(message);
        }

        public void Error(string url, int code, string message)
        {
            string data = Utility.Text.Format("Url:{0}, Code:{1}, Message:{2}", url, code, message);
            TEngine.Log.Error(message);
        }

        public void Log(string message)
        {
            TEngine.Log.Info(message);
        }

        public void Warning(string message)
        {
            TEngine.Log.Warning(message);
        }

        public void Error(string message)
        {
            TEngine.Log.Error(message);
        }

        public void Exception(System.Exception exception)
        {
            TEngine.Log.Fatal(exception.Message);
        }
    }
}